<?php 
  if($this->pageCount){?>
    <style>
      .paginationControl{
        padding-top: 10px;
        padding-bottom: 10px;
        font-size: 11px;
        color:#333;
        font-weight: bold;
      }
      
      .link_active{
        color:#FF0000;
        font-size: 14px;
        text-decoration: none;
      }
      
      .paginationControl a:link, a:active, a:visited{
        color:#333;
        text-decoration: none;
      }
    </style>
    <div class="paginationControl">
      <!-- Link para página anterior -->
      <?php 
        if(isset($this->previous)){?>
          <a href="<?php echo $this->url(array('page' => $this->first)); ?>"><?php echo $this->translate('<< Primeiro')?></a> |
          <a href="<?php echo $this->url(array('page' => $this->previous)); ?>"><?=$this->translate('< Anterior')?></a> |
          <?php 
        }
        else{ 
          ?>
          <span class="disabled"><?=$this->translate('<< Primeiro')?></span> |
          <span class="disabled"><?=$this->translate('< Anterior')?></span> |
          <?php 
        } 
      ?>
      <!-- Links das páginas por númeração -->
      <?php 
        foreach($this->pagesInRange as $page){
          if($page != $this->current){?>
            <a href="<?php echo $this->url(array('page' => $page)); ?>"><?php echo $page; ?></a> |
            <?php 
          }
          else{?> 
            <span class="link_active"><?php echo $page;?></span> |
            <?php 
          }?>
          <?php 
        } 
      ?>
      <!-- Link da Proxima página -->
      <?php 
        if (isset($this->next)){?>
          <a href="<?php echo $this->url(array('page' => $this->next)); ?>"><?=$this->translate('Próximo >')?></a> |
          <a href="<?php echo $this->url(array('page' => $this->last)); ?>"><?=$this->translate('Último >>')?></a>
          <?php 
        }
        else{ 
          ?>
          <span class="disabled"><?=$this->translate('Próximo >')?></span> |
          <span class="disabled"><?=$this->translate('Último >>')?></span>
          <?php 
        } 
      ?>
    </div>
    <?php 
  } 
?>
